import http from '@/http';

interface LanguageDetail {
  name: string;
  description: string;
  content_type: string;
  config: {
    template: string;
    compile: any;
    run: any;
  };
}

interface LanguageConfig {
  languages: LanguageDetail[];
  spj_languages: LanguageDetail[];
}

export const languageService = {
  getLanguages() {
    return http.get<LanguageConfig>('/api/languages/');
  },
}; 